\hypertarget{main_8c}{}\doxysubsection{extern/libembroidery/src/main.c File Reference}
\label{main_8c}\index{extern/libembroidery/src/main.c@{extern/libembroidery/src/main.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include $<$math.\+h$>$}\newline
{\ttfamily \#include $<$time.\+h$>$}\newline
{\ttfamily \#include \char`\"{}embroidery\+\_\+internal.\+h\char`\"{}}\newline
\doxysubsubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \mbox{\hyperlink{main_8c_a37407a0e43269433f885fdf943047fb6}{FLAG\+\_\+\+TO}}~0
\item 
\#define \mbox{\hyperlink{main_8c_ae802a27a494d1b1a5d5a353fbb78383f}{FLAG\+\_\+\+TO\+\_\+\+SHORT}}~1
\item 
\#define \mbox{\hyperlink{main_8c_ad571aa9682b7e17f8a5ffb568c386d9a}{FLAG\+\_\+\+HELP}}~2
\item 
\#define \mbox{\hyperlink{main_8c_a88da127a7c10c88c0cf14b3257c846a2}{FLAG\+\_\+\+HELP\+\_\+\+SHORT}}~3
\item 
\#define \mbox{\hyperlink{main_8c_a543edc262dc89320cb5ae1d7125cab6a}{FLAG\+\_\+\+FORMATS}}~4
\item 
\#define \mbox{\hyperlink{main_8c_a64478dbce225e58239780c80cd4436c5}{FLAG\+\_\+\+FORMATS\+\_\+\+SHORT}}~5
\item 
\#define \mbox{\hyperlink{main_8c_a406df6c13be29ebe9b82ef1c0e61d64e}{FLAG\+\_\+\+QUIET}}~6
\item 
\#define \mbox{\hyperlink{main_8c_a7e6b98c4c0b01661909ee6b8383318cc}{FLAG\+\_\+\+QUIET\+\_\+\+SHORT}}~7
\item 
\#define \mbox{\hyperlink{main_8c_a8c626d782e7f5efc8f4db596b41b2a59}{FLAG\+\_\+\+VERBOSE}}~8
\item 
\#define \mbox{\hyperlink{main_8c_a30dd1740241f0ac17a62a7a729c10ee9}{FLAG\+\_\+\+VERBOSE\+\_\+\+SHORT}}~9
\item 
\#define \mbox{\hyperlink{main_8c_a55b6c5dccc05b18aefb94fb686617308}{FLAG\+\_\+\+VERSION}}~10
\item 
\#define \mbox{\hyperlink{main_8c_a1be58456ea7e5b7a38ebc02cdc183782}{FLAG\+\_\+\+VERSION\+\_\+\+SHORT}}~11
\item 
\#define \mbox{\hyperlink{main_8c_afeeb658f38cdbb9e21df3c4878ece92b}{FLAG\+\_\+\+CIRCLE}}~12
\item 
\#define \mbox{\hyperlink{main_8c_a97a16e67c5f13f0bc01f7a78755941fa}{FLAG\+\_\+\+CIRCLE\+\_\+\+SHORT}}~13
\item 
\#define \mbox{\hyperlink{main_8c_aed141a0ec5ce8aafbbc7fbf04c7b4c78}{FLAG\+\_\+\+ELLIPSE}}~14
\item 
\#define \mbox{\hyperlink{main_8c_af45a55ab5ac53bc1ae6fd1d0eb5e4a32}{FLAG\+\_\+\+ELLIPSE\+\_\+\+SHORT}}~15
\item 
\#define \mbox{\hyperlink{main_8c_a4bed7d9e28bf0449e970a99a27f4d8b2}{FLAG\+\_\+\+LINE}}~16
\item 
\#define \mbox{\hyperlink{main_8c_ad39d2a0a05f8a0aa0f188df0a5ae7349}{FLAG\+\_\+\+LINE\+\_\+\+SHORT}}~17
\item 
\#define \mbox{\hyperlink{main_8c_af0123998cd5dcf3a3920a34e8e4952d9}{FLAG\+\_\+\+POLYGON}}~18
\item 
\#define \mbox{\hyperlink{main_8c_a6a5e5b08bbc2a728ed34184c33c849dc}{FLAG\+\_\+\+POLYGON\+\_\+\+SHORT}}~19
\item 
\#define \mbox{\hyperlink{main_8c_aab9b4367da6ddf2b410223f3a36aff98}{FLAG\+\_\+\+POLYLINE}}~20
\item 
\#define \mbox{\hyperlink{main_8c_a6ac413798a1c7f8c6d42eff002341edd}{FLAG\+\_\+\+POLYLINE\+\_\+\+SHORT}}~21
\item 
\#define \mbox{\hyperlink{main_8c_a249f7e1db7ac11497fa91d738fa68ca4}{FLAG\+\_\+\+RENDER}}~22
\item 
\#define \mbox{\hyperlink{main_8c_adc337aaa7056646fab6ef21119aaa39b}{FLAG\+\_\+\+RENDER\+\_\+\+SHORT}}~23
\item 
\#define \mbox{\hyperlink{main_8c_ac7db01dce16a1c3f7162f04b12a94e6a}{FLAG\+\_\+\+SATIN}}~24
\item 
\#define \mbox{\hyperlink{main_8c_a641c237279594698bdad9f81cb247049}{FLAG\+\_\+\+SATIN\+\_\+\+SHORT}}~25
\item 
\#define \mbox{\hyperlink{main_8c_af3cdd0c6849b499ebfd062e80b77435d}{FLAG\+\_\+\+STITCH}}~26
\item 
\#define \mbox{\hyperlink{main_8c_aafa9c92f88b2213f5791c566af9083e3}{FLAG\+\_\+\+STITCH\+\_\+\+SHORT}}~27
\item 
\#define \mbox{\hyperlink{main_8c_a73adba977c278377b55c434b49e191f0}{FLAG\+\_\+\+TEST}}~28
\item 
\#define \mbox{\hyperlink{main_8c_a678935889663a0b2379045d4d87b9102}{FLAG\+\_\+\+FULL\+\_\+\+TEST\+\_\+\+SUITE}}~29
\item 
\#define \mbox{\hyperlink{main_8c_a1ebfcac640d04fce645045405468e183}{FLAG\+\_\+\+HILBERT\+\_\+\+CURVE}}~30
\item 
\#define \mbox{\hyperlink{main_8c_a19d145f34926ea9075fdf003be1c6244}{FLAG\+\_\+\+SIERPINSKI\+\_\+\+TRIANGLE}}~31
\item 
\#define \mbox{\hyperlink{main_8c_aa6cb914042fbf5738294b33392d2e8c1}{FLAG\+\_\+\+FILL}}~32
\item 
\#define \mbox{\hyperlink{main_8c_aa76bbb413d43c205298cb92db9193b26}{FLAG\+\_\+\+FILL\+\_\+\+SHORT}}~33
\item 
\#define \mbox{\hyperlink{main_8c_a5522924b4aeacd58916a720c8f626cf7}{FLAG\+\_\+\+SIMULATE}}~34
\item 
\#define \mbox{\hyperlink{main_8c_aad0493d79106b9b9d6506fa7eb931b48}{FLAG\+\_\+\+COMBINE}}~35
\item 
\#define \mbox{\hyperlink{main_8c_a97ba97bc8789baadc6b8e8a3a3c7b6f2}{FLAG\+\_\+\+CROSS\+\_\+\+STITCH}}~36
\item 
\#define \mbox{\hyperlink{main_8c_aaea442f582a9863b593b63383773b548}{NUM\+\_\+\+FLAGS}}~37
\end{DoxyCompactItemize}
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \mbox{\hyperlink{main_8c_ac073ac90ab219ba57c58bdd405d6ab41}{emb\+Vector\+\_\+print}} (\mbox{\hyperlink{embroidery_8h_a16fa26764453571074cb85a7574738d4}{Emb\+Vector}} v, char $\ast$label)
\begin{DoxyCompactList}\small\item\em {\itshape v} {\itshape label} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a16e1e46c5c33874fc9a63476e70c0d66}{emb\+Arc\+\_\+print}} (\mbox{\hyperlink{embroidery_8h_a09945e6e919629c5787e61582c712ba1}{Emb\+Arc}} arc)
\begin{DoxyCompactList}\small\item\em {\itshape arc} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_ad6d5aaabb6637d271cec955c2dd42ded}{check\+\_\+header\+\_\+present}} (FILE $\ast$file, int minimum\+\_\+header\+\_\+length)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape minimum\+\_\+header\+\_\+length} \end{DoxyCompactList}\item 
unsigned int \mbox{\hyperlink{main_8c_a5da0013e5c2fb1d49c92d85fd8028109}{sector\+Size}} (\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File)
\begin{DoxyCompactList}\small\item\em {\itshape bcf\+File} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_aad299cf13841b348b13bcaea721734fc}{have\+Extra\+DIFATSectors}} (\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$file)
\begin{DoxyCompactList}\small\item\em {\itshape file} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_a5abd59b3d55bc37d3c2094fede71a5cb}{seek\+To\+Sector}} (\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File, FILE $\ast$file, const unsigned int sector)
\begin{DoxyCompactList}\small\item\em {\itshape bcf\+File} {\itshape file} {\itshape sector} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a2d0fa82cd8a6d6ad4e873f59e45c3b55}{parse\+DIFATSectors}} (FILE $\ast$file, \mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape bcf\+File} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_a4acd18062065ffbee8f6cd9b00965cc2}{bcf\+File\+\_\+read}} (FILE $\ast$file, \mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape bcf\+File} \end{DoxyCompactList}\item 
FILE $\ast$ \mbox{\hyperlink{main_8c_a3f3c7530acd7b40f4ce2dc9069fb794a}{Get\+File}} (\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File, FILE $\ast$file, char $\ast$file\+To\+Find)
\begin{DoxyCompactList}\small\item\em Get the File object. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a491e7bc54a29532020548d6dcad3e57f}{bcf\+\_\+file\+\_\+free}} (\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$bcf\+File)
\begin{DoxyCompactList}\small\item\em {\itshape bcf\+File} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$ \mbox{\hyperlink{main_8c_a8277b359861dbbfe6c3244f28c894632}{bcf\+\_\+difat\+\_\+create}} (FILE $\ast$file, unsigned int fat\+Sectors, const unsigned int \mbox{\hyperlink{main_8c_a5da0013e5c2fb1d49c92d85fd8028109}{sector\+Size}})
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape fat\+Sectors} {\itshape sector\+Size} \end{DoxyCompactList}\item 
unsigned int \mbox{\hyperlink{main_8c_a5462a9cf780abd252021ca031a1f59af}{entries\+In\+Difat\+Sector}} (\mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$fat)
\begin{DoxyCompactList}\small\item\em {\itshape fat} \end{DoxyCompactList}\item 
unsigned int \mbox{\hyperlink{main_8c_a842ff85875f8cc0833691ea1fc2505be}{read\+Full\+Sector}} (FILE $\ast$file, \mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$bcf\+File, unsigned int $\ast$difat\+Entries\+To\+Read)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape bcf\+File} {\itshape difat\+Entries\+To\+Read} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a4221460e3e8fca706df3420ed245e1d9}{parse\+Directory\+Entry\+Name}} (FILE $\ast$file, \mbox{\hyperlink{embroidery__internal_8h_abb451c97faf6366fb733ff7b29054c19}{bcf\+\_\+directory\+\_\+entry}} $\ast$dir)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape dir} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$ \mbox{\hyperlink{main_8c_a66c717936143bb39229e9c5880dacaa1}{Compound\+File\+Directory}} (const unsigned int max\+Number\+Of\+Directory\+Entries)
\begin{DoxyCompactList}\small\item\em {\itshape max\+Number\+Of\+Directory\+Entries} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} \mbox{\hyperlink{main_8c_afa71579ab89ee63f1e0a1f85ced52759}{parse\+Time}} (FILE $\ast$file)
\begin{DoxyCompactList}\small\item\em {\itshape file} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery__internal_8h_abb451c97faf6366fb733ff7b29054c19}{bcf\+\_\+directory\+\_\+entry}} $\ast$ \mbox{\hyperlink{main_8c_a3b7a815d54672417e902a05a3d7f7b3f}{Compound\+File\+Directory\+Entry}} (FILE $\ast$file)
\begin{DoxyCompactList}\small\item\em {\itshape file} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a7a74138f5ffaa71deb934c3c407a6289}{read\+Next\+Sector}} (FILE $\ast$file, \mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$dir)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape dir} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a994645555ce8f1021b9efc280bffd6a9}{bcf\+\_\+directory\+\_\+free}} (\mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$$\ast$dir)
\begin{DoxyCompactList}\small\item\em {\itshape dir} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery__internal_8h_a9a00b74e77254af1f7af14c6e12007d7}{bcf\+\_\+file\+\_\+fat}} $\ast$ \mbox{\hyperlink{main_8c_a4e7377ff59e275ae4dc1d80ede4837e9}{bcf\+File\+Fat\+\_\+create}} (const unsigned int \mbox{\hyperlink{main_8c_a5da0013e5c2fb1d49c92d85fd8028109}{sector\+Size}})
\begin{DoxyCompactList}\small\item\em {\itshape sector\+Size} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a71a5f4111bd3daa574148e2f45d4c893}{load\+Fat\+From\+Sector}} (\mbox{\hyperlink{embroidery__internal_8h_a9a00b74e77254af1f7af14c6e12007d7}{bcf\+\_\+file\+\_\+fat}} $\ast$fat, FILE $\ast$file)
\begin{DoxyCompactList}\small\item\em {\itshape fat} {\itshape file} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery__internal_8h_a5226ee18f1045aa203f53da9b74d6963}{bcf\+\_\+file\+\_\+header}} \mbox{\hyperlink{main_8c_a6faf1e4138b3dba5948cb6da199babce}{bcf\+File\+Header\+\_\+read}} (FILE $\ast$file)
\begin{DoxyCompactList}\small\item\em {\itshape file} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a695a90f248ef0842c61374bce70c5f98}{emb\+Satin\+Outline\+\_\+generate\+Satin\+Outline}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$lines, \mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}} thickness, \mbox{\hyperlink{embroidery_8h_af3d7bc78977c54ad019cf191aee0f276}{Emb\+Satin\+Outline}} $\ast$result)
\begin{DoxyCompactList}\small\item\em {\itshape lines} {\itshape thickness} {\itshape result} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$ \mbox{\hyperlink{main_8c_ad9c5030f98ef9647ba7315d0c228b92a}{emb\+Satin\+Outline\+\_\+render\+Stitches}} (\mbox{\hyperlink{embroidery_8h_af3d7bc78977c54ad019cf191aee0f276}{Emb\+Satin\+Outline}} $\ast$result, \mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}} density)
\begin{DoxyCompactList}\small\item\em {\itshape result} {\itshape density} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_ad7ce8c6db5aed09b17a6a048e1d1c65c}{write\+\_\+24bit}} (FILE $\ast$file, int x)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape x} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_ad9da4f78764c28784f04bf3b01861d60}{emb\+Color\+\_\+distance}} (\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} a, \mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} b)
\begin{DoxyCompactList}\small\item\em {\itshape a} {\itshape b} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a7f539183b901a4c1d25adcb71c6fbdc9}{emb\+Color\+\_\+read}} (FILE $\ast$f, \mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} $\ast$c, int to\+Read)
\begin{DoxyCompactList}\small\item\em {\itshape f} {\itshape c} {\itshape to\+Read} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a14b8ac9c1dba4c2978c3db27a8c16689}{emb\+Color\+\_\+write}} (FILE $\ast$f, \mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} c, int to\+Write)
\begin{DoxyCompactList}\small\item\em {\itshape f} {\itshape c} {\itshape to\+Write} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_a7355da06df1167cc5c1da4841bae2f3d}{emb\+Thread\+\_\+find\+Nearest\+Color}} (\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} color, \mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} $\ast$color\+\_\+list, int n\+\_\+colors)
\item 
int \mbox{\hyperlink{main_8c_a4227373571f3602fac495c42b8722035}{emb\+Thread\+\_\+find\+Nearest\+Thread}} (\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} color, \mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} $\ast$thread\+\_\+list, int n\+\_\+threads)
\begin{DoxyCompactList}\small\item\em {\itshape color} {\itshape thread\+\_\+list} {\itshape n\+\_\+threads} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} \mbox{\hyperlink{main_8c_a01b7c6ed19a92df4935d2fd23a732295}{emb\+Thread\+\_\+get\+Random}} (void)
\item 
void \mbox{\hyperlink{main_8c_a0312900273cfed05bf6d7ed748940cdb}{binary\+Read\+String}} (FILE $\ast$file, char $\ast$buffer, int max\+Length)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape buffer} {\itshape max\+Length} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a33105f462fbb9892aebb284f35606c57}{binary\+Read\+Unicode\+String}} (FILE $\ast$file, char $\ast$buffer, const int string\+Length)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape buffer} {\itshape string\+Length} \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_aa08223cd2dd75ce77baf8d5e7f139e1a}{string\+In\+Array}} (const char $\ast$s, const char $\ast$$\ast$array)
\item 
int \mbox{\hyperlink{main_8c_a7859b94e89cd2848d4116c7e8d662a14}{emb\+\_\+readline}} (FILE $\ast$file, char $\ast$line, int max\+Length)
\begin{DoxyCompactList}\small\item\em {\itshape file} {\itshape line} {\itshape max\+Length} \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a9f3bbc6f01263cd6f3d41fbc245d49b8}{get\+\_\+trim\+\_\+bounds}} (char const $\ast$s, char const $\ast$$\ast$first\+Word, char const $\ast$$\ast$trailing\+Space)
\begin{DoxyCompactList}\small\item\em Get the trim bounds object. \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{main_8c_a5d7bf5f964ae87921bab916b871ea2dd}{copy\+\_\+trim}} (char const $\ast$s)
\begin{DoxyCompactList}\small\item\em {\itshape s} \end{DoxyCompactList}\item 
char $\ast$ \mbox{\hyperlink{main_8c_a3f13f5d30ef64bf1f316f1cc5174b28b}{emb\+\_\+opt\+Out}} (\mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}} num, char $\ast$str)
\begin{DoxyCompactList}\small\item\em Optimizes the number ({\itshape num}) for output to a text file and returns it as a string ({\itshape str}). \end{DoxyCompactList}\item 
void \mbox{\hyperlink{main_8c_a1a113d80928c378c7347e73172eac33d}{emb\+Time\+\_\+init\+Now}} (\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} $\ast$t)
\begin{DoxyCompactList}\small\item\em {\itshape t} \end{DoxyCompactList}\item 
\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} \mbox{\hyperlink{main_8c_aac30715a74b82858ae1e7c1b3dd8b22a}{emb\+Time\+\_\+time}} (\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} $\ast$t)
\begin{DoxyCompactList}\small\item\em {\itshape t} \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsubsection*{Variables}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} \mbox{\hyperlink{main_8c_ae6a1199d8c3aad2464c3296ab902b4a9}{black\+\_\+thread}} = \{ \{ 0, 0, 0 \}, \char`\"{}Black\char`\"{}, \char`\"{}Black\char`\"{} \}
\item 
int \mbox{\hyperlink{main_8c_a3e3a5b8efffea93c4268a39ee5690098}{emb\+\_\+verbose}} = 0
\begin{DoxyCompactList}\small\item\em Verbosity level. \end{DoxyCompactList}\item 
int \mbox{\hyperlink{main_8c_a1a622bb87a39f0338527347ee6ba1402}{emb\+\_\+error}} = 0
\begin{DoxyCompactList}\small\item\em Error code storage for optional control flow blocking. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}} \mbox{\hyperlink{main_8c_a052bcc45c7207b189a9fe6925ec76c99}{emb\+Constant\+Pi}} = 3.\+1415926535
\item 
const unsigned int \mbox{\hyperlink{main_8c_a250130545165a5ff7e416c0d9e3cb101}{difat\+Entries\+In\+Header}} = 109
\item 
const unsigned int \mbox{\hyperlink{main_8c_aeffcb7cf2616f8a5bad2f683e9299fd3}{size\+Of\+Fat\+Entry}} = sizeof(unsigned int)
\item 
const unsigned int \mbox{\hyperlink{main_8c_add631e44c8ce53262c8ed050c8f4f1fa}{size\+Of\+Difat\+Entry}} = 4
\item 
const unsigned int \mbox{\hyperlink{main_8c_a199c1a6bb0538cdc9f990f8bf03db9d6}{size\+Of\+Chaining\+Entry\+At\+End\+Of\+Difat\+Sector}} = 4
\item 
const unsigned int \mbox{\hyperlink{main_8c_a1108ef211702e6990edb3ade1a3305af}{size\+Of\+Directory\+Entry}} = 128
\item 
char const \mbox{\hyperlink{main_8c_aa9ac064963355a764e9ac3cbbb60dc64}{WHITESPACE}} \mbox{[}$\,$\mbox{]} = \char`\"{} \textbackslash{}t\textbackslash{}n\textbackslash{}r\char`\"{}
\end{DoxyCompactItemize}


\doxysubsubsection{Macro Definition Documentation}
\mbox{\Hypertarget{main_8c_afeeb658f38cdbb9e21df3c4878ece92b}\label{main_8c_afeeb658f38cdbb9e21df3c4878ece92b}} 
\index{main.c@{main.c}!FLAG\_CIRCLE@{FLAG\_CIRCLE}}
\index{FLAG\_CIRCLE@{FLAG\_CIRCLE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_CIRCLE}{FLAG\_CIRCLE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+CIRCLE~12}

\mbox{\Hypertarget{main_8c_a97a16e67c5f13f0bc01f7a78755941fa}\label{main_8c_a97a16e67c5f13f0bc01f7a78755941fa}} 
\index{main.c@{main.c}!FLAG\_CIRCLE\_SHORT@{FLAG\_CIRCLE\_SHORT}}
\index{FLAG\_CIRCLE\_SHORT@{FLAG\_CIRCLE\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_CIRCLE\_SHORT}{FLAG\_CIRCLE\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+CIRCLE\+\_\+\+SHORT~13}

\mbox{\Hypertarget{main_8c_aad0493d79106b9b9d6506fa7eb931b48}\label{main_8c_aad0493d79106b9b9d6506fa7eb931b48}} 
\index{main.c@{main.c}!FLAG\_COMBINE@{FLAG\_COMBINE}}
\index{FLAG\_COMBINE@{FLAG\_COMBINE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_COMBINE}{FLAG\_COMBINE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+COMBINE~35}

\mbox{\Hypertarget{main_8c_a97ba97bc8789baadc6b8e8a3a3c7b6f2}\label{main_8c_a97ba97bc8789baadc6b8e8a3a3c7b6f2}} 
\index{main.c@{main.c}!FLAG\_CROSS\_STITCH@{FLAG\_CROSS\_STITCH}}
\index{FLAG\_CROSS\_STITCH@{FLAG\_CROSS\_STITCH}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_CROSS\_STITCH}{FLAG\_CROSS\_STITCH}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+CROSS\+\_\+\+STITCH~36}

\mbox{\Hypertarget{main_8c_aed141a0ec5ce8aafbbc7fbf04c7b4c78}\label{main_8c_aed141a0ec5ce8aafbbc7fbf04c7b4c78}} 
\index{main.c@{main.c}!FLAG\_ELLIPSE@{FLAG\_ELLIPSE}}
\index{FLAG\_ELLIPSE@{FLAG\_ELLIPSE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_ELLIPSE}{FLAG\_ELLIPSE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+ELLIPSE~14}

\mbox{\Hypertarget{main_8c_af45a55ab5ac53bc1ae6fd1d0eb5e4a32}\label{main_8c_af45a55ab5ac53bc1ae6fd1d0eb5e4a32}} 
\index{main.c@{main.c}!FLAG\_ELLIPSE\_SHORT@{FLAG\_ELLIPSE\_SHORT}}
\index{FLAG\_ELLIPSE\_SHORT@{FLAG\_ELLIPSE\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_ELLIPSE\_SHORT}{FLAG\_ELLIPSE\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+ELLIPSE\+\_\+\+SHORT~15}

\mbox{\Hypertarget{main_8c_aa6cb914042fbf5738294b33392d2e8c1}\label{main_8c_aa6cb914042fbf5738294b33392d2e8c1}} 
\index{main.c@{main.c}!FLAG\_FILL@{FLAG\_FILL}}
\index{FLAG\_FILL@{FLAG\_FILL}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_FILL}{FLAG\_FILL}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+FILL~32}

\mbox{\Hypertarget{main_8c_aa76bbb413d43c205298cb92db9193b26}\label{main_8c_aa76bbb413d43c205298cb92db9193b26}} 
\index{main.c@{main.c}!FLAG\_FILL\_SHORT@{FLAG\_FILL\_SHORT}}
\index{FLAG\_FILL\_SHORT@{FLAG\_FILL\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_FILL\_SHORT}{FLAG\_FILL\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+FILL\+\_\+\+SHORT~33}

\mbox{\Hypertarget{main_8c_a543edc262dc89320cb5ae1d7125cab6a}\label{main_8c_a543edc262dc89320cb5ae1d7125cab6a}} 
\index{main.c@{main.c}!FLAG\_FORMATS@{FLAG\_FORMATS}}
\index{FLAG\_FORMATS@{FLAG\_FORMATS}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_FORMATS}{FLAG\_FORMATS}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+FORMATS~4}

\mbox{\Hypertarget{main_8c_a64478dbce225e58239780c80cd4436c5}\label{main_8c_a64478dbce225e58239780c80cd4436c5}} 
\index{main.c@{main.c}!FLAG\_FORMATS\_SHORT@{FLAG\_FORMATS\_SHORT}}
\index{FLAG\_FORMATS\_SHORT@{FLAG\_FORMATS\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_FORMATS\_SHORT}{FLAG\_FORMATS\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+FORMATS\+\_\+\+SHORT~5}

\mbox{\Hypertarget{main_8c_a678935889663a0b2379045d4d87b9102}\label{main_8c_a678935889663a0b2379045d4d87b9102}} 
\index{main.c@{main.c}!FLAG\_FULL\_TEST\_SUITE@{FLAG\_FULL\_TEST\_SUITE}}
\index{FLAG\_FULL\_TEST\_SUITE@{FLAG\_FULL\_TEST\_SUITE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_FULL\_TEST\_SUITE}{FLAG\_FULL\_TEST\_SUITE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+FULL\+\_\+\+TEST\+\_\+\+SUITE~29}

\mbox{\Hypertarget{main_8c_ad571aa9682b7e17f8a5ffb568c386d9a}\label{main_8c_ad571aa9682b7e17f8a5ffb568c386d9a}} 
\index{main.c@{main.c}!FLAG\_HELP@{FLAG\_HELP}}
\index{FLAG\_HELP@{FLAG\_HELP}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_HELP}{FLAG\_HELP}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+HELP~2}

\mbox{\Hypertarget{main_8c_a88da127a7c10c88c0cf14b3257c846a2}\label{main_8c_a88da127a7c10c88c0cf14b3257c846a2}} 
\index{main.c@{main.c}!FLAG\_HELP\_SHORT@{FLAG\_HELP\_SHORT}}
\index{FLAG\_HELP\_SHORT@{FLAG\_HELP\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_HELP\_SHORT}{FLAG\_HELP\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+HELP\+\_\+\+SHORT~3}

\mbox{\Hypertarget{main_8c_a1ebfcac640d04fce645045405468e183}\label{main_8c_a1ebfcac640d04fce645045405468e183}} 
\index{main.c@{main.c}!FLAG\_HILBERT\_CURVE@{FLAG\_HILBERT\_CURVE}}
\index{FLAG\_HILBERT\_CURVE@{FLAG\_HILBERT\_CURVE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_HILBERT\_CURVE}{FLAG\_HILBERT\_CURVE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+HILBERT\+\_\+\+CURVE~30}

\mbox{\Hypertarget{main_8c_a4bed7d9e28bf0449e970a99a27f4d8b2}\label{main_8c_a4bed7d9e28bf0449e970a99a27f4d8b2}} 
\index{main.c@{main.c}!FLAG\_LINE@{FLAG\_LINE}}
\index{FLAG\_LINE@{FLAG\_LINE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_LINE}{FLAG\_LINE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+LINE~16}

\mbox{\Hypertarget{main_8c_ad39d2a0a05f8a0aa0f188df0a5ae7349}\label{main_8c_ad39d2a0a05f8a0aa0f188df0a5ae7349}} 
\index{main.c@{main.c}!FLAG\_LINE\_SHORT@{FLAG\_LINE\_SHORT}}
\index{FLAG\_LINE\_SHORT@{FLAG\_LINE\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_LINE\_SHORT}{FLAG\_LINE\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+LINE\+\_\+\+SHORT~17}

\mbox{\Hypertarget{main_8c_af0123998cd5dcf3a3920a34e8e4952d9}\label{main_8c_af0123998cd5dcf3a3920a34e8e4952d9}} 
\index{main.c@{main.c}!FLAG\_POLYGON@{FLAG\_POLYGON}}
\index{FLAG\_POLYGON@{FLAG\_POLYGON}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_POLYGON}{FLAG\_POLYGON}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+POLYGON~18}

\mbox{\Hypertarget{main_8c_a6a5e5b08bbc2a728ed34184c33c849dc}\label{main_8c_a6a5e5b08bbc2a728ed34184c33c849dc}} 
\index{main.c@{main.c}!FLAG\_POLYGON\_SHORT@{FLAG\_POLYGON\_SHORT}}
\index{FLAG\_POLYGON\_SHORT@{FLAG\_POLYGON\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_POLYGON\_SHORT}{FLAG\_POLYGON\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+POLYGON\+\_\+\+SHORT~19}

\mbox{\Hypertarget{main_8c_aab9b4367da6ddf2b410223f3a36aff98}\label{main_8c_aab9b4367da6ddf2b410223f3a36aff98}} 
\index{main.c@{main.c}!FLAG\_POLYLINE@{FLAG\_POLYLINE}}
\index{FLAG\_POLYLINE@{FLAG\_POLYLINE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_POLYLINE}{FLAG\_POLYLINE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+POLYLINE~20}

\mbox{\Hypertarget{main_8c_a6ac413798a1c7f8c6d42eff002341edd}\label{main_8c_a6ac413798a1c7f8c6d42eff002341edd}} 
\index{main.c@{main.c}!FLAG\_POLYLINE\_SHORT@{FLAG\_POLYLINE\_SHORT}}
\index{FLAG\_POLYLINE\_SHORT@{FLAG\_POLYLINE\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_POLYLINE\_SHORT}{FLAG\_POLYLINE\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+POLYLINE\+\_\+\+SHORT~21}

\mbox{\Hypertarget{main_8c_a406df6c13be29ebe9b82ef1c0e61d64e}\label{main_8c_a406df6c13be29ebe9b82ef1c0e61d64e}} 
\index{main.c@{main.c}!FLAG\_QUIET@{FLAG\_QUIET}}
\index{FLAG\_QUIET@{FLAG\_QUIET}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_QUIET}{FLAG\_QUIET}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+QUIET~6}

\mbox{\Hypertarget{main_8c_a7e6b98c4c0b01661909ee6b8383318cc}\label{main_8c_a7e6b98c4c0b01661909ee6b8383318cc}} 
\index{main.c@{main.c}!FLAG\_QUIET\_SHORT@{FLAG\_QUIET\_SHORT}}
\index{FLAG\_QUIET\_SHORT@{FLAG\_QUIET\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_QUIET\_SHORT}{FLAG\_QUIET\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+QUIET\+\_\+\+SHORT~7}

\mbox{\Hypertarget{main_8c_a249f7e1db7ac11497fa91d738fa68ca4}\label{main_8c_a249f7e1db7ac11497fa91d738fa68ca4}} 
\index{main.c@{main.c}!FLAG\_RENDER@{FLAG\_RENDER}}
\index{FLAG\_RENDER@{FLAG\_RENDER}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_RENDER}{FLAG\_RENDER}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+RENDER~22}

\mbox{\Hypertarget{main_8c_adc337aaa7056646fab6ef21119aaa39b}\label{main_8c_adc337aaa7056646fab6ef21119aaa39b}} 
\index{main.c@{main.c}!FLAG\_RENDER\_SHORT@{FLAG\_RENDER\_SHORT}}
\index{FLAG\_RENDER\_SHORT@{FLAG\_RENDER\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_RENDER\_SHORT}{FLAG\_RENDER\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+RENDER\+\_\+\+SHORT~23}

\mbox{\Hypertarget{main_8c_ac7db01dce16a1c3f7162f04b12a94e6a}\label{main_8c_ac7db01dce16a1c3f7162f04b12a94e6a}} 
\index{main.c@{main.c}!FLAG\_SATIN@{FLAG\_SATIN}}
\index{FLAG\_SATIN@{FLAG\_SATIN}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_SATIN}{FLAG\_SATIN}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+SATIN~24}

\mbox{\Hypertarget{main_8c_a641c237279594698bdad9f81cb247049}\label{main_8c_a641c237279594698bdad9f81cb247049}} 
\index{main.c@{main.c}!FLAG\_SATIN\_SHORT@{FLAG\_SATIN\_SHORT}}
\index{FLAG\_SATIN\_SHORT@{FLAG\_SATIN\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_SATIN\_SHORT}{FLAG\_SATIN\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+SATIN\+\_\+\+SHORT~25}

\mbox{\Hypertarget{main_8c_a19d145f34926ea9075fdf003be1c6244}\label{main_8c_a19d145f34926ea9075fdf003be1c6244}} 
\index{main.c@{main.c}!FLAG\_SIERPINSKI\_TRIANGLE@{FLAG\_SIERPINSKI\_TRIANGLE}}
\index{FLAG\_SIERPINSKI\_TRIANGLE@{FLAG\_SIERPINSKI\_TRIANGLE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_SIERPINSKI\_TRIANGLE}{FLAG\_SIERPINSKI\_TRIANGLE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+SIERPINSKI\+\_\+\+TRIANGLE~31}

\mbox{\Hypertarget{main_8c_a5522924b4aeacd58916a720c8f626cf7}\label{main_8c_a5522924b4aeacd58916a720c8f626cf7}} 
\index{main.c@{main.c}!FLAG\_SIMULATE@{FLAG\_SIMULATE}}
\index{FLAG\_SIMULATE@{FLAG\_SIMULATE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_SIMULATE}{FLAG\_SIMULATE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+SIMULATE~34}

\mbox{\Hypertarget{main_8c_af3cdd0c6849b499ebfd062e80b77435d}\label{main_8c_af3cdd0c6849b499ebfd062e80b77435d}} 
\index{main.c@{main.c}!FLAG\_STITCH@{FLAG\_STITCH}}
\index{FLAG\_STITCH@{FLAG\_STITCH}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_STITCH}{FLAG\_STITCH}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+STITCH~26}

\mbox{\Hypertarget{main_8c_aafa9c92f88b2213f5791c566af9083e3}\label{main_8c_aafa9c92f88b2213f5791c566af9083e3}} 
\index{main.c@{main.c}!FLAG\_STITCH\_SHORT@{FLAG\_STITCH\_SHORT}}
\index{FLAG\_STITCH\_SHORT@{FLAG\_STITCH\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_STITCH\_SHORT}{FLAG\_STITCH\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+STITCH\+\_\+\+SHORT~27}

\mbox{\Hypertarget{main_8c_a73adba977c278377b55c434b49e191f0}\label{main_8c_a73adba977c278377b55c434b49e191f0}} 
\index{main.c@{main.c}!FLAG\_TEST@{FLAG\_TEST}}
\index{FLAG\_TEST@{FLAG\_TEST}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_TEST}{FLAG\_TEST}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+TEST~28}

\mbox{\Hypertarget{main_8c_a37407a0e43269433f885fdf943047fb6}\label{main_8c_a37407a0e43269433f885fdf943047fb6}} 
\index{main.c@{main.c}!FLAG\_TO@{FLAG\_TO}}
\index{FLAG\_TO@{FLAG\_TO}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_TO}{FLAG\_TO}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+TO~0}

\mbox{\Hypertarget{main_8c_ae802a27a494d1b1a5d5a353fbb78383f}\label{main_8c_ae802a27a494d1b1a5d5a353fbb78383f}} 
\index{main.c@{main.c}!FLAG\_TO\_SHORT@{FLAG\_TO\_SHORT}}
\index{FLAG\_TO\_SHORT@{FLAG\_TO\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_TO\_SHORT}{FLAG\_TO\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+TO\+\_\+\+SHORT~1}

\mbox{\Hypertarget{main_8c_a8c626d782e7f5efc8f4db596b41b2a59}\label{main_8c_a8c626d782e7f5efc8f4db596b41b2a59}} 
\index{main.c@{main.c}!FLAG\_VERBOSE@{FLAG\_VERBOSE}}
\index{FLAG\_VERBOSE@{FLAG\_VERBOSE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_VERBOSE}{FLAG\_VERBOSE}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+VERBOSE~8}

\mbox{\Hypertarget{main_8c_a30dd1740241f0ac17a62a7a729c10ee9}\label{main_8c_a30dd1740241f0ac17a62a7a729c10ee9}} 
\index{main.c@{main.c}!FLAG\_VERBOSE\_SHORT@{FLAG\_VERBOSE\_SHORT}}
\index{FLAG\_VERBOSE\_SHORT@{FLAG\_VERBOSE\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_VERBOSE\_SHORT}{FLAG\_VERBOSE\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+VERBOSE\+\_\+\+SHORT~9}

\mbox{\Hypertarget{main_8c_a55b6c5dccc05b18aefb94fb686617308}\label{main_8c_a55b6c5dccc05b18aefb94fb686617308}} 
\index{main.c@{main.c}!FLAG\_VERSION@{FLAG\_VERSION}}
\index{FLAG\_VERSION@{FLAG\_VERSION}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_VERSION}{FLAG\_VERSION}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+VERSION~10}

\mbox{\Hypertarget{main_8c_a1be58456ea7e5b7a38ebc02cdc183782}\label{main_8c_a1be58456ea7e5b7a38ebc02cdc183782}} 
\index{main.c@{main.c}!FLAG\_VERSION\_SHORT@{FLAG\_VERSION\_SHORT}}
\index{FLAG\_VERSION\_SHORT@{FLAG\_VERSION\_SHORT}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{FLAG\_VERSION\_SHORT}{FLAG\_VERSION\_SHORT}}
{\footnotesize\ttfamily \#define FLAG\+\_\+\+VERSION\+\_\+\+SHORT~11}

\mbox{\Hypertarget{main_8c_aaea442f582a9863b593b63383773b548}\label{main_8c_aaea442f582a9863b593b63383773b548}} 
\index{main.c@{main.c}!NUM\_FLAGS@{NUM\_FLAGS}}
\index{NUM\_FLAGS@{NUM\_FLAGS}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{NUM\_FLAGS}{NUM\_FLAGS}}
{\footnotesize\ttfamily \#define NUM\+\_\+\+FLAGS~37}



\doxysubsubsection{Function Documentation}
\mbox{\Hypertarget{main_8c_a8277b359861dbbfe6c3244f28c894632}\label{main_8c_a8277b359861dbbfe6c3244f28c894632}} 
\index{main.c@{main.c}!bcf\_difat\_create@{bcf\_difat\_create}}
\index{bcf\_difat\_create@{bcf\_difat\_create}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcf\_difat\_create()}{bcf\_difat\_create()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$ bcf\+\_\+difat\+\_\+create (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{unsigned int}]{fat\+Sectors,  }\item[{const unsigned int}]{sector\+Size }\end{DoxyParamCaption})}



{\itshape file} {\itshape fat\+Sectors} {\itshape sector\+Size} 

\begin{DoxyReturn}{Returns}
bcf\+\_\+file\+\_\+difat$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a994645555ce8f1021b9efc280bffd6a9}\label{main_8c_a994645555ce8f1021b9efc280bffd6a9}} 
\index{main.c@{main.c}!bcf\_directory\_free@{bcf\_directory\_free}}
\index{bcf\_directory\_free@{bcf\_directory\_free}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcf\_directory\_free()}{bcf\_directory\_free()}}
{\footnotesize\ttfamily void bcf\+\_\+directory\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$$\ast$}]{dir }\end{DoxyParamCaption})}



{\itshape dir} 

\mbox{\Hypertarget{main_8c_a491e7bc54a29532020548d6dcad3e57f}\label{main_8c_a491e7bc54a29532020548d6dcad3e57f}} 
\index{main.c@{main.c}!bcf\_file\_free@{bcf\_file\_free}}
\index{bcf\_file\_free@{bcf\_file\_free}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcf\_file\_free()}{bcf\_file\_free()}}
{\footnotesize\ttfamily void bcf\+\_\+file\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File }\end{DoxyParamCaption})}



{\itshape bcf\+File} 

\mbox{\Hypertarget{main_8c_a4acd18062065ffbee8f6cd9b00965cc2}\label{main_8c_a4acd18062065ffbee8f6cd9b00965cc2}} 
\index{main.c@{main.c}!bcfFile\_read@{bcfFile\_read}}
\index{bcfFile\_read@{bcfFile\_read}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcfFile\_read()}{bcfFile\_read()}}
{\footnotesize\ttfamily int bcf\+File\+\_\+read (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File }\end{DoxyParamCaption})}



{\itshape file} {\itshape bcf\+File} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a4e7377ff59e275ae4dc1d80ede4837e9}\label{main_8c_a4e7377ff59e275ae4dc1d80ede4837e9}} 
\index{main.c@{main.c}!bcfFileFat\_create@{bcfFileFat\_create}}
\index{bcfFileFat\_create@{bcfFileFat\_create}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcfFileFat\_create()}{bcfFileFat\_create()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery__internal_8h_a9a00b74e77254af1f7af14c6e12007d7}{bcf\+\_\+file\+\_\+fat}} $\ast$ bcf\+File\+Fat\+\_\+create (\begin{DoxyParamCaption}\item[{const unsigned int}]{sector\+Size }\end{DoxyParamCaption})}



{\itshape sector\+Size} 

\begin{DoxyReturn}{Returns}
bcf\+\_\+file\+\_\+fat$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a6faf1e4138b3dba5948cb6da199babce}\label{main_8c_a6faf1e4138b3dba5948cb6da199babce}} 
\index{main.c@{main.c}!bcfFileHeader\_read@{bcfFileHeader\_read}}
\index{bcfFileHeader\_read@{bcfFileHeader\_read}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{bcfFileHeader\_read()}{bcfFileHeader\_read()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery__internal_8h_a5226ee18f1045aa203f53da9b74d6963}{bcf\+\_\+file\+\_\+header}} bcf\+File\+Header\+\_\+read (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



{\itshape file} 

\begin{DoxyReturn}{Returns}
bcf\+\_\+file\+\_\+header 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a0312900273cfed05bf6d7ed748940cdb}\label{main_8c_a0312900273cfed05bf6d7ed748940cdb}} 
\index{main.c@{main.c}!binaryReadString@{binaryReadString}}
\index{binaryReadString@{binaryReadString}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{binaryReadString()}{binaryReadString()}}
{\footnotesize\ttfamily void binary\+Read\+String (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{char $\ast$}]{buffer,  }\item[{int}]{max\+Length }\end{DoxyParamCaption})}



{\itshape file} {\itshape buffer} {\itshape max\+Length} 

\mbox{\Hypertarget{main_8c_a33105f462fbb9892aebb284f35606c57}\label{main_8c_a33105f462fbb9892aebb284f35606c57}} 
\index{main.c@{main.c}!binaryReadUnicodeString@{binaryReadUnicodeString}}
\index{binaryReadUnicodeString@{binaryReadUnicodeString}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{binaryReadUnicodeString()}{binaryReadUnicodeString()}}
{\footnotesize\ttfamily void binary\+Read\+Unicode\+String (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{char $\ast$}]{buffer,  }\item[{const int}]{string\+Length }\end{DoxyParamCaption})}



{\itshape file} {\itshape buffer} {\itshape string\+Length} 

\mbox{\Hypertarget{main_8c_ad6d5aaabb6637d271cec955c2dd42ded}\label{main_8c_ad6d5aaabb6637d271cec955c2dd42ded}} 
\index{main.c@{main.c}!check\_header\_present@{check\_header\_present}}
\index{check\_header\_present@{check\_header\_present}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{check\_header\_present()}{check\_header\_present()}}
{\footnotesize\ttfamily int check\+\_\+header\+\_\+present (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{int}]{minimum\+\_\+header\+\_\+length }\end{DoxyParamCaption})}



{\itshape file} {\itshape minimum\+\_\+header\+\_\+length} 

\begin{DoxyReturn}{Returns}
int
\end{DoxyReturn}
Checks that there are enough bytes to interpret the header, stops possible segfaults when reading in the header bytes.

Returns 0 if there aren\textquotesingle{}t enough, or the length of the file if there are. \mbox{\Hypertarget{main_8c_a66c717936143bb39229e9c5880dacaa1}\label{main_8c_a66c717936143bb39229e9c5880dacaa1}} 
\index{main.c@{main.c}!CompoundFileDirectory@{CompoundFileDirectory}}
\index{CompoundFileDirectory@{CompoundFileDirectory}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{CompoundFileDirectory()}{CompoundFileDirectory()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$ Compound\+File\+Directory (\begin{DoxyParamCaption}\item[{const unsigned int}]{max\+Number\+Of\+Directory\+Entries }\end{DoxyParamCaption})}



{\itshape max\+Number\+Of\+Directory\+Entries} 

\begin{DoxyReturn}{Returns}
bcf\+\_\+directory$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a3b7a815d54672417e902a05a3d7f7b3f}\label{main_8c_a3b7a815d54672417e902a05a3d7f7b3f}} 
\index{main.c@{main.c}!CompoundFileDirectoryEntry@{CompoundFileDirectoryEntry}}
\index{CompoundFileDirectoryEntry@{CompoundFileDirectoryEntry}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{CompoundFileDirectoryEntry()}{CompoundFileDirectoryEntry()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery__internal_8h_abb451c97faf6366fb733ff7b29054c19}{bcf\+\_\+directory\+\_\+entry}} $\ast$ Compound\+File\+Directory\+Entry (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



{\itshape file} 

\begin{DoxyReturn}{Returns}
bcf\+\_\+directory\+\_\+entry$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a5d7bf5f964ae87921bab916b871ea2dd}\label{main_8c_a5d7bf5f964ae87921bab916b871ea2dd}} 
\index{main.c@{main.c}!copy\_trim@{copy\_trim}}
\index{copy\_trim@{copy\_trim}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{copy\_trim()}{copy\_trim()}}
{\footnotesize\ttfamily char $\ast$ copy\+\_\+trim (\begin{DoxyParamCaption}\item[{char const $\ast$}]{s }\end{DoxyParamCaption})}



{\itshape s} 

\begin{DoxyReturn}{Returns}
char$\ast$
\end{DoxyReturn}
\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000237}{Todo}}]decription \end{DoxyRefDesc}
\mbox{\Hypertarget{main_8c_a3f13f5d30ef64bf1f316f1cc5174b28b}\label{main_8c_a3f13f5d30ef64bf1f316f1cc5174b28b}} 
\index{main.c@{main.c}!emb\_optOut@{emb\_optOut}}
\index{emb\_optOut@{emb\_optOut}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{emb\_optOut()}{emb\_optOut()}}
{\footnotesize\ttfamily char $\ast$ emb\+\_\+opt\+Out (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}}}]{num,  }\item[{char $\ast$}]{str }\end{DoxyParamCaption})}



Optimizes the number ({\itshape num}) for output to a text file and returns it as a string ({\itshape str}). 

{\itshape num} {\itshape str} \begin{DoxyReturn}{Returns}
char$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a7859b94e89cd2848d4116c7e8d662a14}\label{main_8c_a7859b94e89cd2848d4116c7e8d662a14}} 
\index{main.c@{main.c}!emb\_readline@{emb\_readline}}
\index{emb\_readline@{emb\_readline}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{emb\_readline()}{emb\_readline()}}
{\footnotesize\ttfamily int emb\+\_\+readline (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{char $\ast$}]{line,  }\item[{int}]{max\+Length }\end{DoxyParamCaption})}



{\itshape file} {\itshape line} {\itshape max\+Length} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a16e1e46c5c33874fc9a63476e70c0d66}\label{main_8c_a16e1e46c5c33874fc9a63476e70c0d66}} 
\index{main.c@{main.c}!embArc\_print@{embArc\_print}}
\index{embArc\_print@{embArc\_print}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embArc\_print()}{embArc\_print()}}
{\footnotesize\ttfamily void emb\+Arc\+\_\+print (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a09945e6e919629c5787e61582c712ba1}{Emb\+Arc}}}]{arc }\end{DoxyParamCaption})}



{\itshape arc} 

\begin{DoxyRefDesc}{Todo}
\item[\mbox{\hyperlink{todo__todo000236}{Todo}}]move to \mbox{\hyperlink{arc_8c}{arc.\+c}} \end{DoxyRefDesc}
\mbox{\Hypertarget{main_8c_ad9da4f78764c28784f04bf3b01861d60}\label{main_8c_ad9da4f78764c28784f04bf3b01861d60}} 
\index{main.c@{main.c}!embColor\_distance@{embColor\_distance}}
\index{embColor\_distance@{embColor\_distance}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embColor\_distance()}{embColor\_distance()}}
{\footnotesize\ttfamily int emb\+Color\+\_\+distance (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}}}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}}}]{b }\end{DoxyParamCaption})}



{\itshape a} {\itshape b} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a7f539183b901a4c1d25adcb71c6fbdc9}\label{main_8c_a7f539183b901a4c1d25adcb71c6fbdc9}} 
\index{main.c@{main.c}!embColor\_read@{embColor\_read}}
\index{embColor\_read@{embColor\_read}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embColor\_read()}{embColor\_read()}}
{\footnotesize\ttfamily void emb\+Color\+\_\+read (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{f,  }\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} $\ast$}]{c,  }\item[{int}]{to\+Read }\end{DoxyParamCaption})}



{\itshape f} {\itshape c} {\itshape to\+Read} 

\mbox{\Hypertarget{main_8c_a14b8ac9c1dba4c2978c3db27a8c16689}\label{main_8c_a14b8ac9c1dba4c2978c3db27a8c16689}} 
\index{main.c@{main.c}!embColor\_write@{embColor\_write}}
\index{embColor\_write@{embColor\_write}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embColor\_write()}{embColor\_write()}}
{\footnotesize\ttfamily void emb\+Color\+\_\+write (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{f,  }\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}}}]{c,  }\item[{int}]{to\+Write }\end{DoxyParamCaption})}



{\itshape f} {\itshape c} {\itshape to\+Write} 

\mbox{\Hypertarget{main_8c_a695a90f248ef0842c61374bce70c5f98}\label{main_8c_a695a90f248ef0842c61374bce70c5f98}} 
\index{main.c@{main.c}!embSatinOutline\_generateSatinOutline@{embSatinOutline\_generateSatinOutline}}
\index{embSatinOutline\_generateSatinOutline@{embSatinOutline\_generateSatinOutline}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embSatinOutline\_generateSatinOutline()}{embSatinOutline\_generateSatinOutline()}}
{\footnotesize\ttfamily void emb\+Satin\+Outline\+\_\+generate\+Satin\+Outline (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{lines,  }\item[{\mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}}}]{thickness,  }\item[{\mbox{\hyperlink{embroidery_8h_af3d7bc78977c54ad019cf191aee0f276}{Emb\+Satin\+Outline}} $\ast$}]{result }\end{DoxyParamCaption})}



{\itshape lines} {\itshape thickness} {\itshape result} 

\mbox{\Hypertarget{main_8c_ad9c5030f98ef9647ba7315d0c228b92a}\label{main_8c_ad9c5030f98ef9647ba7315d0c228b92a}} 
\index{main.c@{main.c}!embSatinOutline\_renderStitches@{embSatinOutline\_renderStitches}}
\index{embSatinOutline\_renderStitches@{embSatinOutline\_renderStitches}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embSatinOutline\_renderStitches()}{embSatinOutline\_renderStitches()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$ emb\+Satin\+Outline\+\_\+render\+Stitches (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_af3d7bc78977c54ad019cf191aee0f276}{Emb\+Satin\+Outline}} $\ast$}]{result,  }\item[{\mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}}}]{density }\end{DoxyParamCaption})}



{\itshape result} {\itshape density} 

\begin{DoxyReturn}{Returns}
Emb\+Array$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a7355da06df1167cc5c1da4841bae2f3d}\label{main_8c_a7355da06df1167cc5c1da4841bae2f3d}} 
\index{main.c@{main.c}!embThread\_findNearestColor@{embThread\_findNearestColor}}
\index{embThread\_findNearestColor@{embThread\_findNearestColor}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embThread\_findNearestColor()}{embThread\_findNearestColor()}}
{\footnotesize\ttfamily int emb\+Thread\+\_\+find\+Nearest\+Color (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}}}]{color,  }\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}} $\ast$}]{color\+\_\+list,  }\item[{int}]{n\+\_\+colors }\end{DoxyParamCaption})}

Returns the closest color to the required color based on a list of available threads. The algorithm is a simple least squares search against the list. If the (square of) Euclidean 3-\/dimensional distance between the points in (red, green, blue) space is smaller then the index is saved and the remaining index is returned to the caller.

{\itshape color} The Emb\+Color color to match. {\itshape colors} The Emb\+Thread\+List pointer to start the search at. {\itshape mode} Is the argument an array of threads (0) or colors (1)? \begin{DoxyReturn}{Returns}
closest\+Index The entry in the Thread\+List that matches. 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a4227373571f3602fac495c42b8722035}\label{main_8c_a4227373571f3602fac495c42b8722035}} 
\index{main.c@{main.c}!embThread\_findNearestThread@{embThread\_findNearestThread}}
\index{embThread\_findNearestThread@{embThread\_findNearestThread}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embThread\_findNearestThread()}{embThread\_findNearestThread()}}
{\footnotesize\ttfamily int emb\+Thread\+\_\+find\+Nearest\+Thread (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_acde9d757854564332fd795a084ec88b3}{Emb\+Color}}}]{color,  }\item[{\mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} $\ast$}]{thread\+\_\+list,  }\item[{int}]{n\+\_\+threads }\end{DoxyParamCaption})}



{\itshape color} {\itshape thread\+\_\+list} {\itshape n\+\_\+threads} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a01b7c6ed19a92df4935d2fd23a732295}\label{main_8c_a01b7c6ed19a92df4935d2fd23a732295}} 
\index{main.c@{main.c}!embThread\_getRandom@{embThread\_getRandom}}
\index{embThread\_getRandom@{embThread\_getRandom}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embThread\_getRandom()}{embThread\_getRandom()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} emb\+Thread\+\_\+get\+Random (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}

Returns a random thread color, useful in filling in cases where the actual color of the thread doesn\textquotesingle{}t matter but one needs to be declared to test or render a pattern.

\begin{DoxyReturn}{Returns}
c The resulting color. 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a1a113d80928c378c7347e73172eac33d}\label{main_8c_a1a113d80928c378c7347e73172eac33d}} 
\index{main.c@{main.c}!embTime\_initNow@{embTime\_initNow}}
\index{embTime\_initNow@{embTime\_initNow}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embTime\_initNow()}{embTime\_initNow()}}
{\footnotesize\ttfamily void emb\+Time\+\_\+init\+Now (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} $\ast$}]{t }\end{DoxyParamCaption})}



{\itshape t} 

\mbox{\Hypertarget{main_8c_aac30715a74b82858ae1e7c1b3dd8b22a}\label{main_8c_aac30715a74b82858ae1e7c1b3dd8b22a}} 
\index{main.c@{main.c}!embTime\_time@{embTime\_time}}
\index{embTime\_time@{embTime\_time}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embTime\_time()}{embTime\_time()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} emb\+Time\+\_\+time (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} $\ast$}]{t }\end{DoxyParamCaption})}



{\itshape t} 

\begin{DoxyReturn}{Returns}
Emb\+Time 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_ac073ac90ab219ba57c58bdd405d6ab41}\label{main_8c_ac073ac90ab219ba57c58bdd405d6ab41}} 
\index{main.c@{main.c}!embVector\_print@{embVector\_print}}
\index{embVector\_print@{embVector\_print}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embVector\_print()}{embVector\_print()}}
{\footnotesize\ttfamily void emb\+Vector\+\_\+print (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_a16fa26764453571074cb85a7574738d4}{Emb\+Vector}}}]{v,  }\item[{char $\ast$}]{label }\end{DoxyParamCaption})}



{\itshape v} {\itshape label} 

move to \mbox{\hyperlink{vector_8c}{vector.\+c}} \mbox{\Hypertarget{main_8c_a5462a9cf780abd252021ca031a1f59af}\label{main_8c_a5462a9cf780abd252021ca031a1f59af}} 
\index{main.c@{main.c}!entriesInDifatSector@{entriesInDifatSector}}
\index{entriesInDifatSector@{entriesInDifatSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{entriesInDifatSector()}{entriesInDifatSector()}}
{\footnotesize\ttfamily unsigned int entries\+In\+Difat\+Sector (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$}]{fat }\end{DoxyParamCaption})}



{\itshape fat} 

\begin{DoxyReturn}{Returns}
unsigned int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a9f3bbc6f01263cd6f3d41fbc245d49b8}\label{main_8c_a9f3bbc6f01263cd6f3d41fbc245d49b8}} 
\index{main.c@{main.c}!get\_trim\_bounds@{get\_trim\_bounds}}
\index{get\_trim\_bounds@{get\_trim\_bounds}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{get\_trim\_bounds()}{get\_trim\_bounds()}}
{\footnotesize\ttfamily void get\+\_\+trim\+\_\+bounds (\begin{DoxyParamCaption}\item[{char const $\ast$}]{s,  }\item[{char const $\ast$$\ast$}]{first\+Word,  }\item[{char const $\ast$$\ast$}]{trailing\+Space }\end{DoxyParamCaption})}



Get the trim bounds object. 

{\itshape s} {\itshape first\+Word} {\itshape trailing\+Space} \mbox{\Hypertarget{main_8c_a3f3c7530acd7b40f4ce2dc9069fb794a}\label{main_8c_a3f3c7530acd7b40f4ce2dc9069fb794a}} 
\index{main.c@{main.c}!GetFile@{GetFile}}
\index{GetFile@{GetFile}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{GetFile()}{GetFile()}}
{\footnotesize\ttfamily FILE $\ast$ Get\+File (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File,  }\item[{FILE $\ast$}]{file,  }\item[{char $\ast$}]{file\+To\+Find }\end{DoxyParamCaption})}



Get the File object. 

{\itshape bcf\+File} {\itshape file} {\itshape file\+To\+Find} \begin{DoxyReturn}{Returns}
FILE$\ast$ 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_aad299cf13841b348b13bcaea721734fc}\label{main_8c_aad299cf13841b348b13bcaea721734fc}} 
\index{main.c@{main.c}!haveExtraDIFATSectors@{haveExtraDIFATSectors}}
\index{haveExtraDIFATSectors@{haveExtraDIFATSectors}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{haveExtraDIFATSectors()}{haveExtraDIFATSectors()}}
{\footnotesize\ttfamily int have\+Extra\+DIFATSectors (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{file }\end{DoxyParamCaption})}



{\itshape file} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a71a5f4111bd3daa574148e2f45d4c893}\label{main_8c_a71a5f4111bd3daa574148e2f45d4c893}} 
\index{main.c@{main.c}!loadFatFromSector@{loadFatFromSector}}
\index{loadFatFromSector@{loadFatFromSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{loadFatFromSector()}{loadFatFromSector()}}
{\footnotesize\ttfamily void load\+Fat\+From\+Sector (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a9a00b74e77254af1f7af14c6e12007d7}{bcf\+\_\+file\+\_\+fat}} $\ast$}]{fat,  }\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



{\itshape fat} {\itshape file} 

\mbox{\Hypertarget{main_8c_a2d0fa82cd8a6d6ad4e873f59e45c3b55}\label{main_8c_a2d0fa82cd8a6d6ad4e873f59e45c3b55}} 
\index{main.c@{main.c}!parseDIFATSectors@{parseDIFATSectors}}
\index{parseDIFATSectors@{parseDIFATSectors}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{parseDIFATSectors()}{parseDIFATSectors()}}
{\footnotesize\ttfamily void parse\+DIFATSectors (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File }\end{DoxyParamCaption})}



{\itshape file} {\itshape bcf\+File} 

\mbox{\Hypertarget{main_8c_a4221460e3e8fca706df3420ed245e1d9}\label{main_8c_a4221460e3e8fca706df3420ed245e1d9}} 
\index{main.c@{main.c}!parseDirectoryEntryName@{parseDirectoryEntryName}}
\index{parseDirectoryEntryName@{parseDirectoryEntryName}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{parseDirectoryEntryName()}{parseDirectoryEntryName()}}
{\footnotesize\ttfamily void parse\+Directory\+Entry\+Name (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery__internal_8h_abb451c97faf6366fb733ff7b29054c19}{bcf\+\_\+directory\+\_\+entry}} $\ast$}]{dir }\end{DoxyParamCaption})}



{\itshape file} {\itshape dir} 

\mbox{\Hypertarget{main_8c_afa71579ab89ee63f1e0a1f85ced52759}\label{main_8c_afa71579ab89ee63f1e0a1f85ced52759}} 
\index{main.c@{main.c}!parseTime@{parseTime}}
\index{parseTime@{parseTime}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{parseTime()}{parseTime()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_a3829b58c37eab5cd81529f1916adcd33}{Emb\+Time}} parse\+Time (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file }\end{DoxyParamCaption})}



{\itshape file} 

\begin{DoxyReturn}{Returns}
Emb\+Time 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a842ff85875f8cc0833691ea1fc2505be}\label{main_8c_a842ff85875f8cc0833691ea1fc2505be}} 
\index{main.c@{main.c}!readFullSector@{readFullSector}}
\index{readFullSector@{readFullSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{readFullSector()}{readFullSector()}}
{\footnotesize\ttfamily unsigned int read\+Full\+Sector (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery__internal_8h_a04a761d12d7ad0f1f0c7566dda49f354}{bcf\+\_\+file\+\_\+difat}} $\ast$}]{bcf\+File,  }\item[{unsigned int $\ast$}]{difat\+Entries\+To\+Read }\end{DoxyParamCaption})}



{\itshape file} {\itshape bcf\+File} {\itshape difat\+Entries\+To\+Read} 

\begin{DoxyReturn}{Returns}
unsigned int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a7a74138f5ffaa71deb934c3c407a6289}\label{main_8c_a7a74138f5ffaa71deb934c3c407a6289}} 
\index{main.c@{main.c}!readNextSector@{readNextSector}}
\index{readNextSector@{readNextSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{readNextSector()}{readNextSector()}}
{\footnotesize\ttfamily void read\+Next\+Sector (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{\mbox{\hyperlink{embroidery__internal_8h_a5e0de54ec0ef10b88a4e499bbe94f869}{bcf\+\_\+directory}} $\ast$}]{dir }\end{DoxyParamCaption})}



{\itshape file} {\itshape dir} 

\mbox{\Hypertarget{main_8c_a5da0013e5c2fb1d49c92d85fd8028109}\label{main_8c_a5da0013e5c2fb1d49c92d85fd8028109}} 
\index{main.c@{main.c}!sectorSize@{sectorSize}}
\index{sectorSize@{sectorSize}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{sectorSize()}{sectorSize()}}
{\footnotesize\ttfamily unsigned int sector\+Size (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File }\end{DoxyParamCaption})}



{\itshape bcf\+File} 

\begin{DoxyReturn}{Returns}
unsigned int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_a5abd59b3d55bc37d3c2094fede71a5cb}\label{main_8c_a5abd59b3d55bc37d3c2094fede71a5cb}} 
\index{main.c@{main.c}!seekToSector@{seekToSector}}
\index{seekToSector@{seekToSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{seekToSector()}{seekToSector()}}
{\footnotesize\ttfamily int seek\+To\+Sector (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery__internal_8h_a59bc2d371cf6c478fdea78305c2a9748}{bcf\+\_\+file}} $\ast$}]{bcf\+File,  }\item[{FILE $\ast$}]{file,  }\item[{const unsigned int}]{sector }\end{DoxyParamCaption})}



{\itshape bcf\+File} {\itshape file} {\itshape sector} 

\begin{DoxyReturn}{Returns}
int 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_aa08223cd2dd75ce77baf8d5e7f139e1a}\label{main_8c_aa08223cd2dd75ce77baf8d5e7f139e1a}} 
\index{main.c@{main.c}!stringInArray@{stringInArray}}
\index{stringInArray@{stringInArray}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{stringInArray()}{stringInArray()}}
{\footnotesize\ttfamily int string\+In\+Array (\begin{DoxyParamCaption}\item[{const char $\ast$}]{s,  }\item[{const char $\ast$$\ast$}]{array }\end{DoxyParamCaption})}

Tests for the presence of a string {\itshape s} in the supplied {\itshape array}.

The end of the array is marked by an empty string.

\begin{DoxyReturn}{Returns}
0 if not present 1 if present. 
\end{DoxyReturn}
\mbox{\Hypertarget{main_8c_ad7ce8c6db5aed09b17a6a048e1d1c65c}\label{main_8c_ad7ce8c6db5aed09b17a6a048e1d1c65c}} 
\index{main.c@{main.c}!write\_24bit@{write\_24bit}}
\index{write\_24bit@{write\_24bit}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{write\_24bit()}{write\_24bit()}}
{\footnotesize\ttfamily void write\+\_\+24bit (\begin{DoxyParamCaption}\item[{FILE $\ast$}]{file,  }\item[{int}]{x }\end{DoxyParamCaption})}



{\itshape file} {\itshape x} 



\doxysubsubsection{Variable Documentation}
\mbox{\Hypertarget{main_8c_ae6a1199d8c3aad2464c3296ab902b4a9}\label{main_8c_ae6a1199d8c3aad2464c3296ab902b4a9}} 
\index{main.c@{main.c}!black\_thread@{black\_thread}}
\index{black\_thread@{black\_thread}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{black\_thread}{black\_thread}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_ab3faffce89b1a5043f8b4e3a001a70bd}{Emb\+Thread}} black\+\_\+thread = \{ \{ 0, 0, 0 \}, \char`\"{}Black\char`\"{}, \char`\"{}Black\char`\"{} \}}

\mbox{\Hypertarget{main_8c_a250130545165a5ff7e416c0d9e3cb101}\label{main_8c_a250130545165a5ff7e416c0d9e3cb101}} 
\index{main.c@{main.c}!difatEntriesInHeader@{difatEntriesInHeader}}
\index{difatEntriesInHeader@{difatEntriesInHeader}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{difatEntriesInHeader}{difatEntriesInHeader}}
{\footnotesize\ttfamily const unsigned int difat\+Entries\+In\+Header = 109}

\mbox{\Hypertarget{main_8c_a1a622bb87a39f0338527347ee6ba1402}\label{main_8c_a1a622bb87a39f0338527347ee6ba1402}} 
\index{main.c@{main.c}!emb\_error@{emb\_error}}
\index{emb\_error@{emb\_error}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{emb\_error}{emb\_error}}
{\footnotesize\ttfamily int emb\+\_\+error = 0}



Error code storage for optional control flow blocking. 

\mbox{\Hypertarget{main_8c_a3e3a5b8efffea93c4268a39ee5690098}\label{main_8c_a3e3a5b8efffea93c4268a39ee5690098}} 
\index{main.c@{main.c}!emb\_verbose@{emb\_verbose}}
\index{emb\_verbose@{emb\_verbose}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{emb\_verbose}{emb\_verbose}}
{\footnotesize\ttfamily int emb\+\_\+verbose = 0}



Verbosity level. 

\mbox{\Hypertarget{main_8c_a052bcc45c7207b189a9fe6925ec76c99}\label{main_8c_a052bcc45c7207b189a9fe6925ec76c99}} 
\index{main.c@{main.c}!embConstantPi@{embConstantPi}}
\index{embConstantPi@{embConstantPi}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{embConstantPi}{embConstantPi}}
{\footnotesize\ttfamily const \mbox{\hyperlink{embroidery_8h_a2082be9aabfb541dff1825c4ca6a05cd}{Emb\+Real}} emb\+Constant\+Pi = 3.\+1415926535}

\mbox{\Hypertarget{main_8c_a199c1a6bb0538cdc9f990f8bf03db9d6}\label{main_8c_a199c1a6bb0538cdc9f990f8bf03db9d6}} 
\index{main.c@{main.c}!sizeOfChainingEntryAtEndOfDifatSector@{sizeOfChainingEntryAtEndOfDifatSector}}
\index{sizeOfChainingEntryAtEndOfDifatSector@{sizeOfChainingEntryAtEndOfDifatSector}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{sizeOfChainingEntryAtEndOfDifatSector}{sizeOfChainingEntryAtEndOfDifatSector}}
{\footnotesize\ttfamily const unsigned int size\+Of\+Chaining\+Entry\+At\+End\+Of\+Difat\+Sector = 4}

\mbox{\Hypertarget{main_8c_add631e44c8ce53262c8ed050c8f4f1fa}\label{main_8c_add631e44c8ce53262c8ed050c8f4f1fa}} 
\index{main.c@{main.c}!sizeOfDifatEntry@{sizeOfDifatEntry}}
\index{sizeOfDifatEntry@{sizeOfDifatEntry}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{sizeOfDifatEntry}{sizeOfDifatEntry}}
{\footnotesize\ttfamily const unsigned int size\+Of\+Difat\+Entry = 4}

\mbox{\Hypertarget{main_8c_a1108ef211702e6990edb3ade1a3305af}\label{main_8c_a1108ef211702e6990edb3ade1a3305af}} 
\index{main.c@{main.c}!sizeOfDirectoryEntry@{sizeOfDirectoryEntry}}
\index{sizeOfDirectoryEntry@{sizeOfDirectoryEntry}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{sizeOfDirectoryEntry}{sizeOfDirectoryEntry}}
{\footnotesize\ttfamily const unsigned int size\+Of\+Directory\+Entry = 128}

\mbox{\Hypertarget{main_8c_aeffcb7cf2616f8a5bad2f683e9299fd3}\label{main_8c_aeffcb7cf2616f8a5bad2f683e9299fd3}} 
\index{main.c@{main.c}!sizeOfFatEntry@{sizeOfFatEntry}}
\index{sizeOfFatEntry@{sizeOfFatEntry}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{sizeOfFatEntry}{sizeOfFatEntry}}
{\footnotesize\ttfamily const unsigned int size\+Of\+Fat\+Entry = sizeof(unsigned int)}

\mbox{\Hypertarget{main_8c_aa9ac064963355a764e9ac3cbbb60dc64}\label{main_8c_aa9ac064963355a764e9ac3cbbb60dc64}} 
\index{main.c@{main.c}!WHITESPACE@{WHITESPACE}}
\index{WHITESPACE@{WHITESPACE}!main.c@{main.c}}
\doxyparagraph{\texorpdfstring{WHITESPACE}{WHITESPACE}}
{\footnotesize\ttfamily char const WHITESPACE\mbox{[}$\,$\mbox{]} = \char`\"{} \textbackslash{}t\textbackslash{}n\textbackslash{}r\char`\"{}}

